﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="首页.aspx.cs" Inherits="ks.首页" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
       <style>
           body {
            background:url(img/5c402e141393d.jpg);
            padding:0;
            margin:0;
        }
        form div {
            padding:10px;

            width: 936px;
        }
        form {
            width:944px;
padding:20px 10px; margin:20px auto;

        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="Label3" runat="server" Text="Label" ForeColor="#00FF99"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="进入管理员界面" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <br />
            <br />
            <asp:Label ID="Label1" runat="server" Text="年份：" ForeColor="#33CCCC"></asp:Label>
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <asp:Label ID="Label2" runat="server" Text="歌手：" ForeColor="Aqua"></asp:Label>
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查询" />
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="Label4" runat="server" ForeColor="#FF99FF" Text="如果你觉得排名没问题可以点赞支持一下"></asp:Label>
&nbsp;
            <asp:Button ID="Button2" runat="server" BackColor="#FF99CC" BorderColor="#FFCCFF" ForeColor="#FF6666" OnClick="Button2_Click1" Text="点赞！" />
            <br />
            <br />
        </div>
        &nbsp;&nbsp;
        <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource2" Height="311px" Width="855px" AutoGenerateColumns="False" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4" GridLines="Horizontal" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
            <Columns>
                <asp:BoundField DataField="年份" HeaderText="年份" SortExpression="年份" />
                <asp:BoundField DataField="年度排名" HeaderText="年度排名" SortExpression="年度排名" />
                <asp:BoundField DataField="歌曲名" HeaderText="歌曲名" SortExpression="歌曲名" />
                <asp:BoundField DataField="歌手" HeaderText="歌手" SortExpression="歌手" />
            </Columns>
            <FooterStyle BackColor="White" ForeColor="#333333" />
            <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="White" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F7F7F7" />
            <SortedAscendingHeaderStyle BackColor="#487575" />
            <SortedDescendingCellStyle BackColor="#E5E5E5" />
            <SortedDescendingHeaderStyle BackColor="#275353" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MusicConnectionString2 %>" SelectCommand="SELECT [年份], [年度排名], [歌曲名], [歌手] FROM [风云音乐榜]"></asp:SqlDataSource>
    </form>
    <p>
        &nbsp;</p>
</body>
</html>
